/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import base.*;
import topping.*;
import Decorator.*;
import Factory.*;

/**
 *
 * @author LL
 */
public class Test2 {

    public static void main(String[] args) {
        PizzaFactory tPizzaFactory = new AUPizzaFactory();
        PizzaBase tBase = tPizzaFactory.createBase("Classic");
        PizzaBase pb1 = tPizzaFactory.createTopping("Cheese", tBase);
        PizzaBase pb = tPizzaFactory.createTopping("Seafood", pb1);
//        PizzaBase pb = new MLTopping("mltop", 6, new CNTopping("cntop", 4, new AUTopping("autop", 2, new CNBase("base1", 3))));
        System.out.println();
        System.out.println(pb.getTotalPrice());
        System.out.println(pb.getNames());
    }
}
